package law_of_demeter

import "fmt"

type BadTeamLeader struct {
	iID int
	sName string
}


func NewBadTeamLeader(id int, name string) ITeamLeader {
	return &BadTeamLeader{
		id,
		name,
	}
}

func (me *BadTeamLeader) CountOpeningTasks() int {
	tasks := LoadTaskList()
	member := NewBadTeamMember(11, "王Member")
	sum := member.countOpeningTasks(tasks)

	fmt.Printf("%v CountOpeningTasks, got %v\n", me.sName, sum)
	return sum
}
